Telegram Group & Telegram Channel
Даны следующие таблицы:

Customers

| CustomerID |   Name   |   City   |
|------------|----------|----------|
| 1 | John | London |
| 2 | Jane | Paris |
| 3 | Mark | London |
| 4 | Sarah | Berlin |
| 5 | Michael | Madrid |

Orders

| OrderID | CustomerID | Product |
|---------|------------|-------------|
| 1001 | 1 | Laptop |
| 1002 | 2 | Phone |
| 1003 | 1 | Tablet |
| 1004 | 4 | Camera |
| 1005 | 3 | TV |

Какой из следующих SQL запросов отберет имена покупателей, которые разместили заказы на продукт с названием "Laptop"?

A) SELECT Name FROM Customers WHERE Product = 'Laptop'

B) SELECT Name FROM Customers JOIN Orders ON Customers.CustomerID = Orders.CustomerID WHERE Product = 'Laptop'

C) SELECT Name FROM Customers INNER JOIN Orders ON Customers.CustomerID = Orders.CustomerID WHERE Product = 'Laptop'

D) SELECT Name FROM Customers WHERE Product = 'Laptop' JOIN Orders ON Customers.CustomerID = Orders.CustomerID



tg-me.com/sql_for_qa/159
Create:
Last Update:

Даны следующие таблицы:

Customers

| CustomerID |   Name   |   City   |
|------------|----------|----------|
| 1 | John | London |
| 2 | Jane | Paris |
| 3 | Mark | London |
| 4 | Sarah | Berlin |
| 5 | Michael | Madrid |

Orders

| OrderID | CustomerID | Product |
|---------|------------|-------------|
| 1001 | 1 | Laptop |
| 1002 | 2 | Phone |
| 1003 | 1 | Tablet |
| 1004 | 4 | Camera |
| 1005 | 3 | TV |

Какой из следующих SQL запросов отберет имена покупателей, которые разместили заказы на продукт с названием "Laptop"?

A) SELECT Name FROM Customers WHERE Product = 'Laptop'

B) SELECT Name FROM Customers JOIN Orders ON Customers.CustomerID = Orders.CustomerID WHERE Product = 'Laptop'

C) SELECT Name FROM Customers INNER JOIN Orders ON Customers.CustomerID = Orders.CustomerID WHERE Product = 'Laptop'

D) SELECT Name FROM Customers WHERE Product = 'Laptop' JOIN Orders ON Customers.CustomerID = Orders.CustomerID

BY SQL для тестировщика


Warning: Undefined variable $i in /var/www/tg-me/post.php on line 283

Share with your friend now:
tg-me.com/sql_for_qa/159

View MORE
Open in Telegram


SQL для тестировщика Telegram | DID YOU KNOW?

Date: |

The global forecast for the Asian markets is murky following recent volatility, with crude oil prices providing support in what has been an otherwise tough month. The European markets were down and the U.S. bourses were mixed and flat and the Asian markets figure to split the difference.The TSE finished modestly lower on Friday following losses from the financial shares and property stocks.For the day, the index sank 15.09 points or 0.49 percent to finish at 3,061.35 after trading between 3,057.84 and 3,089.78. Volume was 1.39 billion shares worth 1.30 billion Singapore dollars. There were 285 decliners and 184 gainers.

Newly uncovered hack campaign in Telegram

The campaign, which security firm Check Point has named Rampant Kitten, comprises two main components, one for Windows and the other for Android. Rampant Kitten’s objective is to steal Telegram messages, passwords, and two-factor authentication codes sent by SMS and then also take screenshots and record sounds within earshot of an infected phone, the researchers said in a post published on Friday.

SQL для тестировщика from sg


Telegram SQL для тестировщика
FROM USA